package de.hs_rm.mmk.group_talk.activities;

import android.content.ContextWrapper;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.view.Window;

public class Preferences extends PreferenceActivity{
	
	@Override
	public void onCreate(Bundle icicle){
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		super.onCreate(icicle);
		this.addPreferencesFromResource(R.xml.preferences);
	}
	
	public static final SharedPreferences getPreferences(final ContextWrapper ctx){
		return ctx.getSharedPreferences(ctx.getPackageName() + "_preferences", MODE_PRIVATE);	
	}
	
}
